<template>
    <div class="print-page">
      11111
    </div>
</template>

<script>
import {ipcRenderer} from 'electron'
export default {
  created(){
    ipcRenderer.on('webview-print-render', (event, info) => {
      // 执行渲染
      //document.getElementById('bd').innerHTML = info.html
      console.log(info)
      ipcRenderer.sendToHost('webview-print-do',info.printName)
    })
  }
}
</script>